package com.example.recipesapp

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import com.example.recipesapp.ui.screens.RecipeListScreen
import com.example.recipesapp.ui.theme.RecipeTheme
import com.example.recipesapp.ui.viewmodel.RecipeViewModel

class MainActivity : ComponentActivity() {
    private val viewModel: RecipeViewModel by viewModels()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContent {
            RecipeTheme {
                //Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
                RecipeListScreen(viewModel = viewModel)
                //        name = "Android",
                //        modifier = Modifier.padding(innerPadding)
                //    )
                //}
            }
        }
    }
}

